import { CoolController, BaseController } from '@cool-midway/core';
import { SchoolEntity } from '../../entity/school';

/**
 * 学校管理
 */
@CoolController({
  api: ['add', 'delete', 'update', 'info', 'list', 'page'],
  entity: SchoolEntity,
    // 分页查询配置
    pageQueryOp: {
      // 支持模糊查询的字段
      keyWordLikeFields: ['name'],
      fieldEq: ['status', 'sysType', 'loginType'],
      addOrderBy: {
        id: 'asc'
      }
    },
})
export class SchoolController extends BaseController {}
